<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../dialog.header.jsp"%>

<style type="text/css">
#dialogIndicatorTreeDiv {
	height: 220px;
	width: 98%;
	border: 1px solid #CCCCCC;
	overflow:auto;
}
</style>
<script type="text/javascript">
var _excludeId = "${param.exclude}";
var _tree;
var _curr_node;

function _refresh() {
	_curr_node = null;
	_tree.jstree("refresh","-1");
}

function _beforeConfirm(callback) {
	if (_curr_node == null) {
		$.alert("请选择指标项！");
		return false;
	}
	callback(_curr_node.rslt.obj);
	return true;
}

$("#dialogIndicatorTreeDiv").ready(function() {
	_curr_node = null;
	_tree = $.readonlyTree("#dialogIndicatorTreeDiv",ctx+"/biz/indicator/children.json?exclude="+_excludeId)
		.bind("select_node.jstree",function(e,data) {
			_curr_node = data;
		});
});
</script>

<div id="dialogIndicatorTreeDiv">
</div>
